<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		
		<script type="text/javascript">
			var user=prompt("请输入您的邮箱:");			
			var reg=/^([0-9A-Za-z]|[0-9]){5,15}@([0-9]|[A-Za-z]){2,5}\.com$/;			
			console.log(reg.test(user));
		</script>
	</body>
</html>
